using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebFoundation;
using WebFoundation.Data;
using MHI.InspectionManager.Data; 
using MHI.InspectionManager.Interfaces; 

namespace MHI.InspectionManager.Business
{
	/// <summary>
	/// DevInspectiondeviceTList, table list:dev_inspectiondevice_t 
	/// </summary>
	internal class DevInspectiondeviceTList : BaseWritableEntities<DevInspectiondeviceT>, IDevInspectiondeviceTList
	{
		private DevInspectiondeviceTQueryDAO _queryDAO;
		private DevInspectiondeviceTWritingDAO _writeDAO;

		public DevInspectiondeviceTList(DevInspectiondeviceTQueryDAO queryDao, DevInspectiondeviceTWritingDAO writtingDao) : base(queryDao, writtingDao)
		{
			this._queryDAO = queryDao;
			this._writeDAO = writtingDao;
		}

		/// <summary>
		/// 获取所有DevInspectiondeviceT,table items:dev_inspectiondevice_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevInspectiondeviceT> GetDevInspectiondeviceTAllItems()
		{
			return _queryDAO.GetDevInspectiondeviceTAllItems().ToList();
		}

		/// <summary>
		/// 根据id，获取所有DevInspectiondeviceT,table items:dev_inspectiondevice_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevInspectiondeviceT> GetDevInspectiondeviceTItemsById(int id)
		{
			return _queryDAO.GetDevInspectiondeviceTItemsById(id);
		}

		/// <summary>
		/// 根据inspectionpointId，获取所有DevInspectiondeviceT,table items:dev_inspectiondevice_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevInspectiondeviceT> GetDevInspectiondeviceTItemsByInspectionpointId(int inspectionpointId)
		{
			return _queryDAO.GetDevInspectiondeviceTItemsByInspectionpointId(inspectionpointId);
		}

		/// <summary>
		/// 根据deviceId，获取所有DevInspectiondeviceT,table items:dev_inspectiondevice_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevInspectiondeviceT> GetDevInspectiondeviceTItemsByDeviceId(int deviceId)
		{
			return _queryDAO.GetDevInspectiondeviceTItemsByDeviceId(deviceId);
		}

		/// <summary>
		/// 增加一行DevInspectiondeviceT,table item:dev_inspectiondevice_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevInspectiondeviceT(DevInspectiondeviceT item)
		{
			return this._writeDAO.AddDevInspectiondeviceT(item);
		}

		/// <summary>
		/// 增加多行DevInspectiondeviceT,table items:dev_inspectiondevice_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevInspectiondeviceTs(DevInspectiondeviceT[] items)
		{
			return this._writeDAO.AddDevInspectiondeviceTs(items);
		}

		/// <summary>
		/// 更新一行DevInspectiondeviceT,table item:dev_inspectiondevice_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevInspectiondeviceT(DevInspectiondeviceT item)
		{
			return this._writeDAO.UpdateDevInspectiondeviceT(item);
		}

		/// <summary>
		///  更新多行DevInspectiondeviceT,table items:dev_inspectiondevice_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevInspectiondeviceTs(DevInspectiondeviceT[] items)
		{
			return this._writeDAO.UpdateDevInspectiondeviceTs(items);
		}

		/// <summary>
		/// 删除一行DevInspectiondeviceT,table item:dev_inspectiondevice_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevInspectiondeviceT(DevInspectiondeviceT item)
		{
			return this._writeDAO.DeleteDevInspectiondeviceT(item);
		}

		/// <summary>
		///  删除多行DevInspectiondeviceT,table items:dev_inspectiondevice_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevInspectiondeviceTs(DevInspectiondeviceT[] items)
		{
			return this._writeDAO.DeleteDevInspectiondeviceTs(items);
		}

		/// <summary>
		///  根据ids，删除多行DevInspectiondeviceT,table entity:dev_inspectiondevice_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevInspectiondeviceTByIds(int[] ids)
		{
			return this._writeDAO.DeleteDevInspectiondeviceTByIds(ids);
		}

	}
}
